import {Component, Injector, OnInit, ReflectiveInjector, ViewEncapsulation} from '@angular/core';
import {FieldDefinition, FieldRef, FieldSource} from "../../../common/field/field.definition";
import {PublishComponent} from "../publish.component";
import {Cell} from "../../../common/form/dynamic/form.model";

@Component({
  selector: 'ss-tables-publish-form-wraper',
  templateUrl: './form.component.html',
  styleUrls: ['./form.component.scss'],
  styles: [`
    .ss-tables-publish-form-wraper {
      display: flex;
      flex: 1;
      min-width: 0;
      min-height: 0;
    }
  `],
  host: {class: "ss-tables-publish-form-wraper"},
  encapsulation: ViewEncapsulation.None
})
export class FormComponent implements OnInit {
  cell: any;

  constructor(public $publish: PublishComponent) {
  }

  ngOnInit(): void {
  }

  onSelectCell(cell: Cell): void {
    this.cell = cell;
  }

}
